﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Text.RegularExpressions;

namespace CollegeShop.WebProcessor
{
    public class PageProcessor
    {
        public static string CurrentUser()
        {
            if (HttpContext.Current.User.Identity.IsAuthenticated)
            {
                string userName = HttpContext.Current.User.Identity.Name;
                if (userName.Trim().Length == 36)
                {
                    return "Local";
                }
                return userName;
            }
            return string.Empty;
        }
    }
}
